package com.huifaapp.mall.activity.Homefragment.ShengqianActvity;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;

import com.huifaapp.mall.R;

public class TigaoNianhuaActivity extends AppCompatActivity implements View.OnClickListener {
    private Button mButQushai;
    private Button mButFenxiang;
    private Button mButGuangguang;
    private Button mButXuan;
    private Button mButZhuangfa;
    private ImageView image_back;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_tigao_nianhua);

        image_back = (ImageView) findViewById(R.id.image_back);
        image_back.setOnClickListener(this);
        mButQushai = (Button) findViewById(R.id.but_qushai);
        mButQushai.setOnClickListener(this);
        mButFenxiang = (Button) findViewById(R.id.but_fenxiang);
        mButFenxiang.setOnClickListener(this);
        mButGuangguang = (Button) findViewById(R.id.but_guangguang);
        mButGuangguang.setOnClickListener(this);
        mButXuan = (Button) findViewById(R.id.but_xuan);
        mButXuan.setOnClickListener(this);
        mButZhuangfa = (Button) findViewById(R.id.but_zhuangfa);
        mButZhuangfa.setOnClickListener(this);

    }

    @Override
    public void onClick(View v) {
        switch (v.getId()){
            case R.id.but_qushai:
                Intent intent = new Intent(TigaoNianhuaActivity.this,SaishouyiActivity.class);
                startActivity(intent);
                break;
            case R.id.but_fenxiang:
                Intent intent1 = new Intent(TigaoNianhuaActivity.this,FenxiangActivity.class);
                startActivity(intent1);
                break;
            case R.id.but_guangguang:
                //跳转京东
                /*Intent intent2 = new Intent(TigaoNianhuaActivity.this,.class);
                startActivity(intent2);*/
                break;
            case R.id.but_xuan:
                Intent intent3 = new Intent(TigaoNianhuaActivity.this,Xuan_Yi_XiaActivity.class);
                startActivity(intent3);
                break;
            case R.id.but_zhuangfa:
                Intent intent4 = new Intent(TigaoNianhuaActivity.this,Zhuang_FaActivity.class);
                startActivity(intent4);

                break;
            case R.id.image_back:
                finish();
                break;
        }

    }
}
